package com.chenyaowei.happyhub.mapper;

import com.chenyaowei.happyhub.pojo.wechatuser.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.access.method.P;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface OrderMapper {
    void insertOrder(Order order);
    List<Order> selectOrderById(@Param("id") int id);
    List<Order> searchOrder(@Param("accountId") String accountId,@Param("keyword")String keyword,@Param("sort") String sort,@Param("status") String status );
    List<Order> selectAllOrder();
    Order selectOrderByOrderId(@Param("id") int id);
    List<Order> selectOrderByDate(@Param("day")String day,@Param("goodId")String goodId);
    List<Order> selectOrderByDate(@Param("day")String day);
    void updateOrder(@Param("id") int id,@Param("receiverName")String receiverName
            ,@Param("mobile")String mobile,@Param("province")String province
            ,@Param("city")String city,@Param("detail")String detail);
}
